'use strict';

module.exports = app => {
  const { STRING, INTEGER, DATE, JSON } = app.Sequelize;

  const SystemDefine = app.model.define('systemDefine', {
    id: { type: INTEGER, primaryKey: true, autoIncrement: true },
    key: STRING(255),
    value: JSON,
    deletedAt: DATE,
  });

  return SystemDefine;
};
